package com.example.redissession.jedis;

import redis.clients.jedis.Jedis;

/**
 * @author chenpenghui
 * @date 2021-5-4
 */
public class JedisBasicTest {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("127.0.0.1", 6379);
        jedis.set("抖音-orderCallback-OrderId:210902223513499PO179845", "91cb9af4-b809-4e6f-ba4d-7e87777241e6");
        System.out.println(jedis.get("抖音-orderCallback-OrderId:210902223513499PO179845"));
        jedis.hset("multiTranslation", "weChatAccessToken", "123");
        String hget = jedis.hget("multiTranslation", "weChatAccessToken");
        System.out.println(hget);
        jedis.close();

    }
}
